<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<html>
<head>
<link rel="stylesheet" href="${ctx}/static/css/Master.css">
<link rel="stylesheet" href="${ctx}/static/css/lq.datetimepick.css">
<script src="${ctx}/static/js/jquery-1.9.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script src="${ctx}/static/js/common/util.js"></script>
<script src="${ctx}/static/plugins/layer/layer.js"></script>
<script>


 function find(url){
	 var a = $("#form1");
	// alert(url);
	 a.attr("action",url);
	 a.submit();
 }
</script>
</head>



<body>
			<section class="boxRight">
				<div class="context boxborder">
				<form action="" method="post" id="form1">
					<div class="SearchList">
						<ul class="clearfix">
							<li class="pl0"><span class="pt">标题：<input name="advTitle" type="text" value="${aviceTitle}" style="width:120;height:35"/></span></li>
							<li class="combtn pr"><a href="javascript:void(0);" onclick="find('${ctx}/personal/messageList')">查询</a></li>
						</ul>
					</div>
					
					<div class="tabnavList">
						<ul class="clearfix">
							<li class="curr" onclick="find('${ctx}/personal/messageList')">通知</li>
							<li  onclick="find('${ctx}/personal/messageList2')">公告</li>
						</ul>
					</div>
					<div class="com_table msgCenter">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<th>序号</th>
								<th>标题</th>
								<th>内容预览</th>
								<th>发布人</th>
								<th>发布时间</th>
								<th>操作</th>
							</tr>
						 <c:forEach items="${result.entityList}" var="advice" varStatus="status">
							<tr class="see">
								<td>${status.index + 1}</td>
								<td>
								<div class="utilTips">
								${advice.advTitle.length()>10?advice.advTitle.substring(0,10).concat(" ..."):advice.advTitle}
	                			<c:if test="${advice.advTitle.length()>10}">
	                			<div class="utilTipsText" style="display: none;">${advice.advTitle}</div>
	                			</c:if>
							   </div>
								</td>
								<td>
								<div class="utilTips">
								${advice.advDetails.length()>10?advice.advDetails.substring(0,10).concat(" ..."):advice.advDetails}
	                			<c:if test="${advice.advDetails.length()>10}">
	                			<div class="utilTipsText" style="display: none;">${advice.advDetails}</div>
	                			</c:if>
							   </div>
								</td>
								<td>${advice.userName}</td>
								<td>
								<div class="utilTips">
								<pretty:prettyTime date="${advice.startDate}"/>
								<div class="utilTipsText" style="display: none;"><fmt:formatDate value="${advice.startDate}" pattern="yyyy-MM-dd"/></div>
								</div>
								</td>
								<td>
								<a class="icon micon_9" title="详情" href="${ctx}/personal/${advice.advId}/massegeDetail"></a>
								</td>
							</tr>
							</c:forEach>
						</table>
				  <%-- 分页 --%>
		          <%@ include file="/WEB-INF/common/page.jsp"%>
					</div>
					</form>
				</div>
			
		</section>
</body>
</html>